<?php
	class Home extends CI_Controller
	{
		public function __construct()
		{
			parent::__construct();
			$this->load->helper('url');
		}
		public function view($page='index')
		{
			if ( ! file_exists('application/views/home/'.$page.'.php'))
			{
				// Whoops, we don't have a page for that!
				show_404();
			}
			$data['title'] = ucfirst($page .' page'); // Capitalize the first letter
			
			$this->load->view('templates/header', $data);
			$this->load->view('home/'.$page, $data);
			$this->load->view('templates/footer', $data);
				
		}
	}
?>